package com.cskt.petproject178.config;

import com.cskt.petproject178.pojo.vo.ResultVO;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 27013
 **/
@Configuration
@ConfigurationProperties(value = "aliyun.sms")
public class AliyunSMSAutoConfigProperties {
    //如果SMS和OSS服务使用同一个账户，则直接OSS的配置信息即可，否则需要单独配置SMS的信息
    private String endpoint;
    @Value(value = "${aliyun.oss.access-key-id}")
    private String accessKeyId;
    @Value(value = "${aliyun.oss.secret-access-key}")
    private String  accessKeySecret;
    private String signName;
    private String templateCode;

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }
}
